<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html 
     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html>
<head>
  <title>print_linescore (Game)</title>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
</head>
<body class="standalone-code">
  <pre><span class="ruby-comment cmt"># File lib/game.rb, line 269</span>
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">print_linescore</span>
        <span class="ruby-identifier">bs</span> = <span class="ruby-identifier">get_boxscore</span>
        <span class="ruby-identifier">output</span> = <span class="ruby-value str">''</span>
        <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">bs</span>.<span class="ruby-identifier">linescore</span> 
        <span class="ruby-identifier">output</span> <span class="ruby-operator">+=</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">visit_team_name</span> <span class="ruby-operator">+</span> <span class="ruby-value str">' '</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">bs</span>.<span class="ruby-identifier">linescore</span>.<span class="ruby-identifier">away_team_runs</span> <span class="ruby-operator">+</span> <span class="ruby-value str">' '</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">bs</span>.<span class="ruby-identifier">linescore</span>.<span class="ruby-identifier">away_team_hits</span> <span class="ruby-operator">+</span> <span class="ruby-value str">' '</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">bs</span>.<span class="ruby-identifier">linescore</span>.<span class="ruby-identifier">away_team_errors</span> <span class="ruby-operator">+</span> <span class="ruby-value str">&quot;\n&quot;</span>
        <span class="ruby-identifier">output</span> <span class="ruby-operator">+=</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">home_team_name</span> <span class="ruby-operator">+</span> <span class="ruby-value str">' '</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">bs</span>.<span class="ruby-identifier">linescore</span>.<span class="ruby-identifier">home_team_runs</span> <span class="ruby-operator">+</span> <span class="ruby-value str">' '</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">bs</span>.<span class="ruby-identifier">linescore</span>.<span class="ruby-identifier">home_team_hits</span> <span class="ruby-operator">+</span> <span class="ruby-value str">' '</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">bs</span>.<span class="ruby-identifier">linescore</span>.<span class="ruby-identifier">home_team_errors</span>
    <span class="ruby-keyword kw">else</span>
        <span class="ruby-identifier">output</span> <span class="ruby-operator">+=</span> <span class="ruby-value str">'No linescore available for '</span> <span class="ruby-operator">+</span> <span class="ruby-ivar">@visit_team_name</span> <span class="ruby-operator">+</span> <span class="ruby-value str">' vs. '</span> <span class="ruby-operator">+</span> <span class="ruby-ivar">@home_team_name</span>
    <span class="ruby-keyword kw">end</span>
    <span class="ruby-identifier">output</span>
  <span class="ruby-keyword kw">end</span></pre>
</body>
</html>